<!DOCTYPE html>
<html lang="zh-cn" ng-app="app">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>{{_("地址管理系统 - 登录窗口")}}</title>
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">

    <!-- Bootstrap 3.3.5 -->
    <link rel="stylesheet" href="/assets/css/bootstrap.min.css" type="text/css"/>
    <link rel="stylesheet" href="/assets/css/AdminLTE.min.css" type="text/css"/>


    <!-- Font Awesome -->
    <link rel="stylesheet" href="/assets/plugins/font-awesome/css/font-awesome.min.css" type="text/css"/>

    <!-- Theme style -->

    <link href="/assets/plugins/skins/skin-blue.css" rel="stylesheet" type="text/css"/>
    <link href="/assets/css/ladda-themeless.min.css" rel="stylesheet" type="text/css"/>
    <!-- iCheck -->
    <link rel="stylesheet" href="/assets/plugins/iCheck/square/blue.css" type="text/css"/>
    <!-- style -->
    <link rel="stylesheet" href="/assets/css/style.css" type="text/css" />
    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="/assets/js/libs/html5shiv.min.js"></script>
    <script src="/assets/js/libs/respond.min.js"></script>
    <![endif]-->
    <script type="text/javascript">
        var lang = {
                "delete_warning": "是否确认删除此信息？",
                "yes": "是",
                "no": "否",
                "unknown": "操作出现意外， 请稍后再试",
                "ok": "知道了",
                "ask_login": "你的帐号已被退出，请登录。",
                "not_found": "相关页面不存在。",
                "no_permistion": "你没有操作其他用户的权限。"
            },
            Otk = {
                'TEMPLETE': '{{Config::get('dashboard.html_prefix')}}',
                'CSRF_TOKEN': '<?php echo csrf_token(); ?>',
                'DASHBOARD' :'{{Config::get('assets')}}',
                'LANGUAGE':'{{Config::get('dashboard.lang')}}'
            }
    </script>
</head>
<body class="hold-transition login-page skin-blue sidebar-mini">
<div class="login-box">
    <div class="login-logo">
        <b>库存管理系统</b>
    </div><!-- /.login-logo -->
    <div class="login-box-body">
        <p class="login-box-msg">登录窗口</p>
        <form id="login-form" method="post" ng-submit="submit('{{\URL::current()}}')" ng-controller="loginCtrl" ng-init="form._token='{{csrf_token()}}'">
            <div class="form-group has-feedback " ng-class="{'has-error':result.data.email}">
                <input dir="ltr" type="email" id="email" ng-focus="error.email=''" ng-model="form.email" class="form-control" placeholder="邮箱"/>
                <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
                <label ng-show="result.data.email" class="control-label" for="email" ng-bind="result.data.email"></label>
                <span ng-show="error.email" class="label label-danger" ng-bind="error.email"></span>
            </div>
            <div class="form-group has-feedback" ng-class="{'has-error':result.data.password}">
                <input dir="ltr" type="password" ng-focus="error.password=''" ng-model="form.password" name="password" id="password" class="form-control" placeholder="密码"/>
                <span class="glyphicon glyphicon-lock form-control-feedback"></span>
                <label ng-show="result.data.password" class="control-label" for="password" ng-bind="result.data.password"></label>
                <span ng-show="error.password" class="label label-danger" ng-bind="error.password"></span>
            </div>
            <div class="row">
                <div class="col-xs-8">
                    <div class="checkbox icheck">
                        <input type="checkbox" ng-model="form.remember" name="remember" id="remember"/>&nbsp;记住登陆状态
                    </div>
                </div><!-- /.col -->
                <div class="col-xs-4">
                    <button type="submit" ladda="loginLoading" class="btn btn-primary btn-block btn-flat">登录</button>
                </div><!-- /.col -->
            </div>
            <div class="row">
                <div ng-show="result.message" class="text-center text-danger">
                    <i class="icon fa fa-warning"></i>
                    <span ng-bind="result.message"></span>
                </div>
            </div>
        </form>
        <a href="{{ url('/password/reset') }}">忘记登录密码？</a><br>
    </div><!-- /.login-box-body -->
</div><!-- /.login-box -->
<!-- jQuery 2.1.4 -->
<script src="/assets/plugins/jQuery/jquery-2.2.3.min.js"></script>

<script src="{{asset('assets/js/libs/angular.min.js')}}"></script>


<script src="/assets/js/libs/angular-route.min.js"></script>
<script src="/assets/js/libs/angular-resource.min.js"></script>
<script src="/assets/js/libs/angular-sanitize.min.js"></script>

<!-- Bootstrap 3.3.5 -->
<script src="/assets/js/bootstrap.min.js" type="text/javascript"></script>
<!-- iCheck -->
<script src="/assets/plugins/iCheck/icheck.js" type="text/javascript"></script>

<script src="/assets/js/admin-lte.min.js"></script>
<script src="/assets/js/app/login.js"></script>
<script>
    $(function () {
        $('input').iCheck({
            checkboxClass: 'icheckbox_square-blue',
            radioClass: 'iradio_square-blue',
            increaseArea: '20%' // optional
        });
    });
</script>

</body>
</html>
